package com.iris.live.services.data.repositories;

import com.iris.live.services.models.PageData;
import com.iris.live.services.services.MarketService;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by sxy on 2016/8/1.
 */
@NoRepositoryBean
public interface MarketRepository {

    PageData getActionList(
            int pageSize, int pageIndex, String permit,
            String code,
            String name,
            String level,
            String type,
            Date startBefore,
            Date endAfter,
            String actionCode,
            String starter
    );

    Object getActionInfoByID(int id);

    List getActionPosts(int actionID);

    List getAppointment(String actionID);

    List getMarketSetType(String permission, String channel);

    List getMarketSetSource(String permission, String channel, String type);

    List getActionByCar(String permission,   List <String> list );

    PageData getCustomerRecords(String permit,MarketService.GetCustomerRecords request);

    Map getCustomerRecordsInfo(MarketService.GetCustomerRecords request);

    Object findInputListByPhone(String phone);

    int getTaskCompleteCount(String permission, String customer);

    List getSaleListByCustomer(int customerID);

    List getPassengerFlowLogByCustomer(int customerID);

    List getActionIDList(int id);

    Object getOrderStatus(int customer);

    List getOrderStatusList(int customer);

    Map getCustomerIDFromRecords(String customer, String sale);

    List getCompetingList();

    List getCompetingListByBrand(String brand);

    PageData getGetActKPIList(MarketService.GetGetActKPIListReq req);

    List getActAttachKPIList(MarketService.GetGetActKPIListReq req);

    PageData getActRecommendKPIList(MarketService.GetGetActKPIListReq req);

    List find邀约客户数(MarketService.GetActKPIReq req);

    List find达成邀约数(MarketService.GetActKPIReq req);

    List find实际出席总数(MarketService.GetActKPIReq req);

    List find邀约出席数(MarketService.GetActKPIReq req);

    List findRecordByParams(MarketService.GetActKPIReq req, String param);

    List find订单数(MarketService.GetActKPIReq req);

    List find零售数(MarketService.GetActKPIReq req);

    List find新增线索数(MarketService.GetActKPIReq req);

    List find线索首次进店数(MarketService.GetActKPIReq req);

    List find线索再次进店数(MarketService.GetActKPIReq req);

    List findSignFormList(MarketService.GetActKPIReq req);

    List findImportListValidClue (String permit, String cdo, String sc, String phone);

}
